/**
 * Copyright (c) 2002-2011 旭鸣信息
 * All rights reserved. 
 * File：ConsumeLogService.java
 * History:
 *       Apr 16, 2012: Initially created, liuzhi.
 */
package com.xteam.ecsystem.service.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xteam.ecsystem.dao.IConsumeLogDao;

/**
 * 消费日志业务管理层
 * @author liuzhi
 *
 */
@Service
public class ConsumeLogService {
	
	@Autowired
	private IConsumeLogDao consumeLogDao;
	
	/**
	 * 条件查询和分页显示消费日志信息
	 * @author liuzhi 2013-12-12
	 * @param pageIndex
	 * @param pageSize
	 * @param bmbNick
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	public String getConsumeLogList(int pageIndex, int pageSize, String bmbNick, 
			String startTime, String endTime){
		return this.consumeLogDao.getConsumeLogList(pageIndex, pageSize, bmbNick, startTime, endTime);
	}
	
	/**
	 * 
	 * 清除单条或多条消费日志信息
	 * @author liuzhi
	 * @param ids
	 */
	public void delConsumeLogsByIds(String ids){
		this.consumeLogDao.delConsumeLogsByIds(ids);
	}
	
	/**
	 * 
	 * 根据选择条件清除消费日志信息
	 * @author liuzhi
	 * @param ids
	 */
	public void delConsumeLogByCon(String condition){
		this.consumeLogDao.delConsumeLogByCon(condition);
	}

}
